//
//  HEMyOrderFooterCell.h
//  HealthFamily
//
//  Created by 吴欧 on 2020/11/5.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HEOrderModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, HEOrderBottomBtnType) {
    HEOrderBottomBtnTypeCheckDetails = 1, // 查看订单
    HEOrderBottomBtnTypeToPay, // 付款
    HEOrderBottomBtnTypeDelete, // 删除订单
    HEOrderBottomBtnTypeComment, // 评价
    HEOrderBottomBtnTypeCancelOrder, // 取消订单
    HEOrderBottomBtnTypeRemind, // 提醒发货
    HEOrderBottomBtnTypeChecklogistics, // 查看物流
    HEOrderBottomBtnTypeConfirmGoods, // 确认收货
    HEOrderBottomBtnTypeApplysales, // 申请售后
    HEOrderBottomBtnTypeBatchApplysales, // 批量申请售后
};

@protocol HEMyOrderFooterCellDelegate <NSObject>

- (void)footerSelect:(HEOrderModel *)model;


- (void)bottomOperationWithModel:(HEOrderModel *)model type:(HEOrderBottomBtnType)type;

@end

@interface HEMyOrderFooterCell : UITableViewCell

@property (nonatomic, strong) HEOrderModel *model;
@property (nonatomic, weak) id <HEMyOrderFooterCellDelegate> delegate;

@end


typedef void(^bottomOperationBlock)(HEOrderBottomBtnType type, HEOrderModel *model);

@interface HEOrderBottomView :UIView

@property (nonatomic, strong) HEOrderModel *model;
@property (nonatomic, copy) bottomOperationBlock oprationBlock;

@end

NS_ASSUME_NONNULL_END
